package com.tedu.demo5.dao;

import org.springframework.stereotype.Repository;

@Repository
public class UserDAOImpl implements IUserDAO{
    @Override
    public boolean findUser(){
        double r = Math.random();//[0.0,1.0)含头不含尾
        if(r>0.5){
            System.out.println("UserDAO:找到用户并返回");
            return true;
        }else{
            System.out.println("未找到该用户");
            return false;
        }

    }
}
